<?php
require 'include/global.php';

require_once './include/all_left.php';
require_once './include/advisory_db.php';
//print_r($_SESSION);
$smarty->compile_check = true;
include("./check/checkpost.php");
$_GET[id] = $_SESSION[uid];
$get = $_SESSION[usertype];

$smarty->display('header.tpl');

if($_GET[rec]!=2){
				switch($get){
						   case recruiter:
							   ob_clean();
							   ob_start();
							   	   echo '<script type="text/javascript" src="include/jquery.tokeninput.js"></script>';

								   $cpforms->formheader(array('title'=>'',
																'name'=>'article',
																'enctype'=>'multipart/form-data'));
									$cpforms->makehidden(array('name'=>'action',
															   'value'=>'rec_update'));
									$recuiterid = intval($_GET[id]);
									$cpforms->makehidden(array('name'=>'id', 'value'=>$recuiterid));
									$read =1;
									$rs  = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."recuiter WHERE rc_id =".$recuiterid);
								//	echo "<pre>";
								  // print_r($rs);
								  $cpforms->longline(array('title'=>"Account Information"));
								  $cpforms->gethightext(array('text'=>"Username",'name'=>"user_name",'value'=>"$rs[rc_uname]",'read'=>"$read",'view'=>"$view",'icon'=>"'Read only. Can not change', WIDTH, 200, SHADOW, true")); $cpforms->gethightext(array('text'=>"Password",'name'=>"password",'type'=>"password",'only'=>1,'view'=>"$view",'icon'=>"'Leave blank unless you wish to change your password.', WIDTH, 200, SHADOW, true"));		   
								  
								   $cpforms->longline(array('title'=>"User Information",'right'=>"Check to Show"));
								   $cpforms->gethightext(array('text'=>"First Name",'name'=>"firstname",'only'=>1,'value'=>"$rs[rc_fname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Last Name", 'name'=>"lastname",'only'=>1,'value'=>"$rs[rc_lname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Email Address", 'name'=>"email",'only'=>1,'value'=>"$rs[rc_email]",'view'=>"$view","ifshow"=>array("name"=>"ifshow_email","value"=>"$rs[ifshow_email]")));
									$cpforms->longline(array('title'=>"Your Public Profile"));
									$cpforms->gethightext(array('text'=>"Profile Title or Your Name", 'name'=>"companyname",'only'=>1,'value'=>"$rs[rc_copname]",'view'=>"$view"));
									$cpforms->gethightext(array('text'=>"Website URL",'name'=>"companyurl",'value'=>"$rs[rc_companyurl]",'view'=>"$view",'icon'=>"'Just type in <font color=blue>http://www.yourdomainname.com</font> here.', WIDTH, 200, SHADOW, true",'prevalue'=>"http://", "ifshow"=>array("name"=>"ifshow_companyurl","value"=>"$rs[ifshow_companyurl]")));
									$cpforms->makefile(array('text'=>"Photo (up to 50KB)",'name'=>"uploadfile", 'value'=>"$rs[rc_uploadfile]",'view'=>"$view"));
									$cpforms->gethightext(array('text'=>"Your Skype ID", 'name'=>"skype",'value'=>"$rs[rc_skype]",'view'=>"$view",'icon'=>"' If you do not have a Skype ID, you may complete this field later.  To get FREE Skype, <a href=\'http://www.skype.com/download\'>Go Here</a>', WIDTH, 200, TITLE,'', SHADOW, true, FADEIN, 100, FADEOUT, 100, STICKY, 1,  CLOSEBTN, true, CLICKCLOSE, true","ifshow"=>array("name"=>"ifshow_skype","value"=>"$rs[ifshow_skype]")));
									$cpforms->gethightext(array('text'=>"Address",'name'=>"address",'only'=>1,'value'=>"$rs[rc_address1]",'view'=>"$view", "ifshow"=>array("name"=>"ifshow_address","value"=>"$rs[ifshow_address]")));
									$cpforms->gethightext(array('text'=>"City",'name'=>"locity",'only'=>1,'value'=>"$rs[rc_city]",'view'=>"$view"));
									$cpforms->makeselect(array('one'=>1,'text'=>"State", 'name'=>"lostate",'only'=>1,'option'=>$state,'selected'=>"$rs[rc_state]",'view'=>"$view",'viewfunction'=>'state'));
									$cpforms->gethightext(array('text'=>"Zip Code",'name'=>"zip",'only'=>1,'value'=>"$rs[rc_zip]",'view'=>"$view"));
									$cpforms->makeselect(array('one'=>1,'text'=>"Country",'name'=>"locountry",'only'=>1,'option'=>$country,'selected'=>"$rs[rc_country]",'view'=>"$view",'viewfunction'=>'country'));
									$cpforms->gethightext(array('text'=>"Phone", 'name'=>"phone",'value'=>"$rs[rc_phone]",'view'=>"$view","ifshow"=>array("name"=>"ifshow_phone","value"=>"$rs[ifshow_phone]")));
									$cpforms->gethightext(array('text'=>"Fax", 'name'=>"fax",'value'=>"$rs[rc_fax]",'view'=>"$view","ifshow"=>array("name"=>"ifshow_fax","value"=>"$rs[ifshow_fax]")));
									$cpforms->gethightext(array('text'=>"Job Title", 'name'=>"jobtitle",'only'=>1,'value'=>"$rs[rc_title]",'view'=>"$view","ifshow"=>array("name"=>"ifshow_jobtitle","value"=>"$rs[ifshow_jobtitle]")));
									$cpforms->makeselect(array('one'=>1,'text'=>"Industry", 'name'=>"industry",'only'=>1,'option'=>$jobcategory,'selected'=>"$rs[rc_industry]",'view'=>"$view",'viewfunction'=>'jobcategory'));
									$cpforms->gethightext(array('text'=>"Your spoken language(s)",'name'=>"spokenlanguage",'value'=>"$rs[rc_spokenlanguage]",'view'=>"$view","ifshow"=>array("name"=>"ifshow_spokenlanguage","value"=>"$rs[ifshow_spokenlanguage]")));
									$cpforms->gethightext(array('text'=>"Years of work experience",'name'=>"recruitex",'only'=>1,'value'=>"$rs[rc_recruitex]",'view'=>"$view", "ifshow"=>array("name"=>"ifshow_recruitex","value"=>"$rs[ifshow_recruitex]")));

									$cpforms->makeselect(array('one'=>1,'text'=>"General Service Area",'name'=>"generalarea",'only'=>1,'option'=>$service,'selected'=>"$rs[rc_generalarea]",'view'=>"$view",'viewfunction'=>'service'));
									$cpforms->makeselect(array('one'=>1,'text'=>"Primary Service State",'name'=>"pristate",'only'=>1,'option'=>$state,'selected'=>"$rs[rc_pristate]",'view'=>"$view",'viewfunction'=>'state'));
									$cpforms->makeselect(array('one'=>1,'text'=>"Primary Service Country",'name'=>"pricountry",'only'=>1,'option'=>$country,'selected'=>"$rs[rc_pricountry]",'view'=>"$view",'viewfunction'=>'country'));
									$cpforms->gethightext(array('text'=>"If service area is outside of the U.S., please indicate location",'name'=>"indicate",'value'=>"$rs[rc_indicate]",'view'=>"$view")); 
									$cpforms->longline(array('title'=>"Your Experience and Specialty"));	
									//init
									foreach($jobfunction as $key=>$val){
										if($key == 0) continue;
										$specialtyOptionsArr[] =  '{"name":"=>'.$val.'", "id":"'.$key.'"} ';
									}
									$specialtyOptions = @implode(",",$specialtyOptionsArr);
									if($rs['rc_topspecialty']){
										$post1Arr = @explode(",",$rs['rc_topspecialty']);
										foreach($post1Arr as $s){
											$post1s[] = '{"name":"=>'.$jobfunction[$s].'","id":"'.$s.'"}';
										}
										$post1 = @implode(",",$post1s);
										$post1 = str_replace("++","+",$post1);
										$post1 = ",prePopulate:[".$post1."]";
									}
									if($rs['rc_morespecialty']){
										$post2Arr = @explode(",",$rs['rc_morespecialty']);
										foreach($post2Arr as $s){
											$post2s[] = '{"name":"=>'.$jobfunction[$s].'","id":"'.$s.'"}';
										}
										$post2 = @implode(",",$post2s);
										$post2 = str_replace("++","+",$post2);
										$post2 = ",prePopulate:[".$post2."]";
									}
									
									echo    '<style>
												.myjobs ul.token-input-list {width: 320px;}
											</style>
											<tr class="firstalt" nowrap><td width="40%" > Your top recruiting specialty (select one): </td>
											   <td width="60%" >
												 <div style="float:left;" class="myjobs">
													<input  type="text" name="topspecialty" maxlength="200" value="" id="topspecialty"  style="width:130px;" ><font color="gray">Please type "=" to show all Job Functions.</font>
												</div>
												</td>
										   </tr>';

									echo '
									  <script>
										$(document).ready(function() {
													$("#topspecialty").tokenInput(['.$specialtyOptions.'],{
														preventDuplicates: true,
														hintText: "Type in a job function",
														tokenLimit: 1
														'.$post1.'
													});
												});
									  </script>
									  ';
									echo    '
											<tr class="firstalt" nowrap><td width="40%" > Add more recruiting specialties: </td>
											   <td width="60%" >
												 <div style="float:left;" class="myjobs">
													<input  type="text" name="morespecialty" maxlength="200" value="" id="morespecialty"  style="width:130px;" ><font color="gray">Please type "=" to show all Job Functions.</font>
												</div>
												</td>
										   </tr>';

									echo '
									  <script>
										$(document).ready(function() {
													$("#morespecialty").tokenInput(['.$specialtyOptions.'],{
														preventDuplicates: true,
														hintText: "Type in a job function"
														'.$post2.'
													});
												});
									  </script>
									  ';
									
									//init
									foreach($hrExperience as $key=>$val){
										if($key == 0) continue;
										$hrExOptionsArr[] =  '{"name":"=>'.$val.'", "id":"'.$key.'"} ';
									}
									$hrExOptions = @implode(",",$hrExOptionsArr);  
									if($rs['rc_hrexperience']){
										$post3Arr = @explode(",",$rs['rc_hrexperience']);
										foreach($post3Arr as $s){
											$post3s[] = '{"name":"=>'.$hrExperience[$s].'","id":"'.$s.'"}';
										}
										$post3 = @implode(",",$post3s);
										$post3 = str_replace("++","+",$post3);
										$post3 = ",prePopulate:[".$post3."]";
									}
									echo    '
											<tr class="firstalt" nowrap><td width="40%" > Your HR experience: </td>
											   <td width="60%" >
												 <div style="float:left;" class="myjobs">
													<input  type="text" name="hrexperience" maxlength="200" value="" id="hrexperience"  style="width:130px;" ><font color="gray">Please type "=" to show all Experiences.</font>
												</div>
												</td>
										   </tr>';

									echo '
									  <script>
										$(document).ready(function() {
													$("#hrexperience").tokenInput(['.$hrExOptions.'],{
														preventDuplicates: true,
														hintText: "Type in a job function"
														'.$post3.'
													});
												});
									  </script>
									  ';

									//init
									foreach($jobcategory as $key=>$val){
										if($key == 0) continue;
										$industryOptionsArr[] =  '{"name":"=>'.$val.'", "id":"'.$key.'"} ';
									}
									$industryOptions = @implode(",",$industryOptionsArr);
									
									if($rs['rc_moreindustry']){
										$post4Arr = @explode(",",$rs['rc_moreindustry']);
										foreach($post4Arr as $s){
											$post4s[] = '{"name":"=>'.$jobcategory[$s].'","id":"'.$s.'"}';
										}
										$post4 = @implode(",",$post4s);
										$post4 = str_replace("++","+",$post4);
										$post4 = ",prePopulate:[".$post4."]";
									}

									echo    '
											<tr class="firstalt" nowrap><td width="40%" > Add more industry experience: </td>
											   <td width="60%" >
												 <div style="float:left;" class="myjobs">
													<input  type="text" name="moreindustry" maxlength="200" value="" id="moreindustry"  style="width:130px;" ><font color="gray">Please type "=" to show all Industries.</font>
												</div>
												</td>
										   </tr>';

									echo '
									  <script>
										$(document).ready(function() {
													$("#moreindustry").tokenInput(['.$industryOptions.'],{
														preventDuplicates: true
														'.$post4.'
													});
												});
									  </script>
									  ';
								   $cpforms->maketextarea(array('text'=>"Include a brief self introduction.",'name'=>"description",'value'=>"$rs[rc_description]",'view'=>"$view" ,'icon'=>"'Include a self introduction here.  You may edit this later.', WIDTH, 200, SHADOW, true"));
								   $cpforms->longline(array('title'=>"Your Contact Preference"));  
								   $cpforms->gethighradio(array('text'=>"Are you open to partnerships or job-splits?",'name'=>"share",'only'=>1,'selected'=>"$rs[rc_share]",'view'=>"$view",'icon'=>"'Select \'Yes\' if you wish to receive invitations to connect from others. Connecting with others on enetRecruiter allows you to easily send them messages and collaborate on job requisitions. You may edit this setting anytime.', WIDTH, 300, SHADOW, true"));
								   $cpforms->gethighradio(array('text'=>"Are you open to regular employee or direct hire opportunities?",'name'=>"business",'only'=>1,'selected'=>"$rs[rc_business]",'view'=>"$view"));
								   $cpforms->gethighradio(array('text'=>"Are you open to contract opportunities?",'name'=>"contract",'only'=>1,'selected'=>"$rs[rc_contract]",'view'=>"$view"));
								   $cpforms->gethighradio(array('text'=>"Are you open to consulting opportunities?",'name'=>"consulting",'only'=>1,'selected'=>"$rs[rc_consulting]",'view'=>"$view"));

								   $cpforms->longline(array('title'=>"Show Your Jobs"));		   

								echo    '
											<tr class="firstalt" nowrap><td width="40%" > Select open jobs to show in your public profile: </td>
											   <td width="60%" >
												 <div style="float:left;" class="myjobs">
													<input  type="text" name="myclient1" maxlength="200" value="" id="demo-input-facebook-theme2"  style="width:130px;" ><font color="gray">Please type "=" to show all your jobs.</font>
												</div>
												</td>
										   </tr>';
								//all my jobs
								$sql = "SELECT jo_id,jo_title,jo_city,jo_state FROM pa_job WHERE jo_uid = '".$_SESSION['uid']."' AND jo_utype='recruiter' AND jo_status <> '3' ORDER BY jo_id DESC";
								$tp_jobs = $DB->fetch_all($sql);
								if(!empty($tp_jobs)){
									foreach($tp_jobs as $job){
										$jobArr[$job['jo_id']] = $job['jo_title'];
										$jobs[] = '{"name":"=>'.$job['jo_title'].' ('.$job['jo_id'].')","id":"'.$job['jo_id'].'"}';
									}
								}
								$jobOptions = @implode(",",$jobs);
								$jobOptions = str_replace("++","+",$jobOptions);

								//all selected jobs
								if(trim($rs[rc_top3_1]) != ''){
									$jobIds = explode(",",$rs[rc_top3_1]);
									foreach($jobIds as $id){
										$jobsSelected[] = '{"name":"=>'.$jobArr[$id].' ('.$id.')","id":"'.$id.'"}';
									}
								}
								$jobSelOptions = @implode(",",$jobsSelected);
								$jobSelOptions = str_replace("++","+",$jobSelOptions);
								echo '
										<script>
										$(document).ready(function() {
													$("#demo-input-facebook-theme2").tokenInput(['.$jobOptions.'],{
														preventDuplicates: true,
														hintText: "Type in a job title",
														prePopulate: ['.$jobSelOptions.']
													});
												});
									  </script>
									  ';
								   $cpforms->longline(array('title'=>"Profile Privacy Setting"));
								   $cpforms->gethighradio(array ('text' => "Current Status",'name' => "pristatus",'options'=>$pri_pub,'only' => 0,'selected' => "$rs[rc_pristatus]",'view' => "$view",'icon'=>"'Select <U>Public</U> to include your profile in our members directory. Select <U>Private</U> if you do not wish to be included in our members directory. You may change this setting anytime.', WIDTH, 200, SHADOW, true"));

								   $cpforms->formfooter(array('confirm'=>3));

								   $reg_data = ob_get_contents();
							   ob_end_clean();

							   $title   = "Recruiter Account and Profile Settings ";
							 
						       $returnicon = "<input class=\"button-secondary\" type=\"button\" value=\"View My Profile\" onclick=\"window.open('recdetail.php?id={$_SESSION[uid]}','_blank');\">";
							   $smarty->assign('returnicon',$returnicon);
							   $smarty->assign('title',$title);
							   $smarty->assign('content',$content);

							   if($err!=''){
							   $smarty->assign("err",$err);
							   }
							   $smarty->assign("reg",$reg_data);
							   $smarty->display('allleft.tpl');
							   $smarty->display('reg.tpl');
						   break;

						   case candidate:
							   ob_clean();
							   ob_start();
								   $cpforms->formheader(array('title'=>'My Account',
																'name'=>'article'));

								   $cpforms->makehidden(array('name'=>'action',
															   'value'=>'can_update'));
								   $candidatesid = intval($_GET[id]);
								   $cpforms->makehidden(array('name'=>'id',
														   'value'=>$candidatesid));
								   $read =1;
								   $rs  = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."candidates WHERE js_id =".$candidatesid);
								   	       $cpforms->gethightext(array('text'=>"√Username",'name'=>"user_name",'value'=>"$rs[js_uname]",'read'=>"$read",'view'=>"$view",'icon'=>"'Read Only', WIDTH, 200, SHADOW, true"));
										   $cpforms->gethightext(array('text'=>"Password",'name'=>"password",'type'=>"password",'only'=>1,'view'=>"$view",'icon'=>"'Leave blank unless you wish to change your password.', WIDTH, 200, SHADOW, true"));
										   $cpforms->longline(array('title'=>"User Information"));
										   $cpforms->gethightext(array('text'=>"Your First Name",'name'=>"firstname",'only'=>1,'value'=>"$rs[js_fname]",'view'=>"$view"));
										   $cpforms->gethightext(array('text'=>"Your Last Name", 'name'=>"lastname",'only'=>1,'value'=>"$rs[js_lname]",'view'=>"$view"));
										   $cpforms->gethightext(array('text'=>"Your Email Address", 'name'=>"email",'only'=>1,'value'=>"$rs[js_email]",'view'=>"$view"));
										   $cpforms->gethightext(array('text'=>"Your Phone", 'name'=>"phone",'only'=>1,'value'=>"$rs[js_phone]",'view'=>"$view"));
										   $cpforms->gethightext(array('text'=>"√Your Job Title", 'name'=>"jobtitle",'only'=>1,'value'=>"$rs[js_title]",'view'=>"$view"));
										   $cpforms->makeselect(array('text'=>"√Industry Category", 'name'=>"industry",'only'=>1,'option'=>$jobcategory,'selected'=>"$rs[js_industry]",'view'=>"$view",'viewfunction'=>'jobcategory'));
										   $cpforms->gethightext(array('text'=>"√Your Skype ID", 'name'=>"skype",'value'=>"$rs[js_skypeid]",'view'=>"$view",'icon'=>"' If you do not have a Skype ID, you may complete this field later.  To get FREE Skype, <a href=\'http://www.skype.com/download\'>Go Here</a>', WIDTH, 200, TITLE,'', SHADOW, true, FADEIN, 100, FADEOUT, 100, STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true"));
										   $cpforms->gethightext(array('text'=>"Address",'name'=>"address",'only'=>1,'value'=>"$rs[js_address1]",'view'=>"$view"));
										   $cpforms->gethightext(array('text'=>"√Location - City",'name'=>"locity",'only'=>1,'value'=>"$rs[js_city]",'view'=>"$view"));
										   $cpforms->makeselect(array('text'=>"√Location - State", 'name'=>"lostate",'only'=>1,'option'=>$state,'selected'=>"$rs[js_state]",'view'=>"$view",'viewfunction'=>'state'));
										   $cpforms->gethightext(array('text'=>"√Location - Zip Code",'name'=>"lozip",'only'=>1,'value'=>"$rs[js_zip]",'view'=>"$view"));

										   $cpforms->makeselect(array('text'=>"√Location - Country",'name'=>"locountry",'only'=>1,'option'=>$country,'selected'=>"$rs[js_country]",'view'=>"$view",'viewfunction'=>'country'));
										   $cpforms->gethighradio(array('text'=>"Would you like to subscribe to our newsletter",'name'=>"newsmailist",'only'=>1,'selected'=>"$rs[js_newsmailist]",'view'=>"$view"));
										  // $cpforms->gethightext(array('text'=>"How did you hear about us?",'name'=>"howus",'only'=>1,'value'=>"$rs[js_howus]",'view'=>"$view"));
										 //  $cpforms->gethightext(array('text'=>"Service Code",'name'=>"servicecode",'value'=>"$rs[js_servicecode]",'view'=>"$view",'icon'=>"'If you have a service code please enter it here.', WIDTH, 200, SHADOW, true"));
										 

								   $cpforms->formfooter(array('confirm'=>3));
								   $reg_data = ob_get_contents();
							   ob_end_clean();
							   $title   = "Candidate Update";
							   $smarty->assign('title',$title);
							   $smarty->assign('content',$content);
							   if($err!=''){
							   $smarty->assign("err",$err);
							   }
							   $smarty->assign("reg",$reg_data);
							   $smarty->display('allleft.tpl');
							   $smarty->display('reg.tpl');
						   break;


						  case employer:
							   ob_clean(); 
							   ob_start();
								  $cpforms->formheader(array('title'=>'My Account','name'=>'article'));

								   $cpforms->makehidden(array('name'=>'action',
															   'value'=>'emp_update'));
								   $employerid = intval($_GET[id]);
								   $cpforms->makehidden(array('name'=>'id', 'value'=>$employerid));
								   $rs  = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."employer WHERE ep_id =".$employerid);
								  // echo "<pre>";
								  // print_r($rs);
								  // echo "</pre>";
								   $read =1;
									$cpforms->gethightext(array('text'=>"√Username",'name'=>"user_name",'only'=>1,'value'=>"$rs[ep_uname]",'read'=>"$read",'view'=>"$view",'icon'=>"'Read Only.', WIDTH, 200, SHADOW, true"));
								   $cpforms->gethightext(array('text'=>"Password",'name'=>"password",'type'=>"password",'view'=>"$view",'icon'=>"'Leave blank unless you wish to change your password.', WIDTH, 200, SHADOW, true"));
								   $cpforms->longline(array('title'=>"Contact Information"));
								   $cpforms->gethightext(array('text'=>"Your First Name",'name'=>"firstname",'only'=>1,'value'=>"$rs[ep_fname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Your Last Name", 'name'=>"lastname",'only'=>1,'value'=>"$rs[ep_lname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Your Email Address", 'name'=>"email",'only'=>1,'value'=>"$rs[ep_email]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Your Phone", 'name'=>"phone",'only'=>1,'value'=>"$rs[ep_phone]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Your Fax", 'name'=>"fax",'value'=>"$rs[ep_fax]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Your Job Title", 'name'=>"jobtitle",'only'=>1,'value'=>"$rs[ep_title]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Your Skype ID", 'name'=>"skype",'value'=>"$rs[ep_skype]",'view'=>"$view",'icon'=>"' If you do not have a Skype ID, you may complete this field later.  To get FREE Skype, <a href=\'http://www.skype.com/download\'>Go Here</a>', WIDTH, 200, TITLE,'', SHADOW, true, FADEIN, 100, FADEOUT, 100, STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true"));
								   $cpforms->gethighradio(array('text'=>"Would you like to subscribe to our newsletter",'name'=>"newsmailist",'only'=>1,'selected'=>"$rs[ep_newsmailist]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"How did you hear about us?",'name'=>"howus",'only'=>1,'value'=>"$rs[ep_howus]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Service Code", 'name'=>"servicecode",'value'=>"$rs[ep_servicecode]",'view'=>"$view",'icon'=>"'If you have a service code please enter it here.', WIDTH, 200, SHADOW, true"));
								   
								   
								   $cpforms->longline(array('title'=>"Company Information"));
								   $cpforms->gethightext(array('text'=>"Company Name", 'name'=>"companyname",'only'=>1,'value'=>"$rs[ep_copname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Company Website URL",'name'=>"companyurl",'only'=>1,'value'=>"$rs[ep_website]",'view'=>"$view"));
								   $cpforms->makeselect(array('text'=>"√Industry", 'name'=>"industry",'only'=>1,'option'=>$jobcategory,'selected'=>"$rs[ep_industry]",'view'=>"$view",'viewfunction'=>'jobcategory'));
								   $cpforms->gethightext(array('text'=>"√Company Size", 'name'=>"companysize",'only'=>1,'value'=>"$rs[ep_copsize]",'view'=>"$view",'icon'=>"' Enter an estimated number of full time employees.', WIDTH, 300, SHADOW, true"));
								   $cpforms->gethightext(array('text'=>"Address",'name'=>"address",'only'=>1,'value'=>"$rs[ep_address1]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Location - City",'name'=>"locity",'only'=>1,'value'=>"$rs[ep_city]",'view'=>"$view"));
								   $cpforms->makeselect(array('text'=>"√Location - State", 'name'=>"lostate",'only'=>1,'option'=>$state,'selected'=>"$rs[ep_state]",'view'=>"$view",'viewfunction'=>'state'));
								   $cpforms->gethightext(array('text'=>"√Location - Zip Code",'name'=>"lozip",'only'=>1,'value'=>"$rs[ep_zip]",'view'=>"$view"));
								   $cpforms->makeselect(array('text'=>"√Location - Country",'name'=>"locountry",'only'=>1,'option'=>$country,'selected'=>"$rs[ep_country]",'view'=>"$view",'viewfunction'=>'country'));
								   $cpforms->gethightext(array('text'=>"ER Account Manager",'name'=>"eraccount",'value'=>"$rs[ep_ERaccount]",'view'=>"$view",'icon'=>"'Enter the name of your enetRecruiter account manager.', WIDTH, 300, SHADOW, true"));
								   $cpforms->maketextarea(array('text'=>"Company Culture",'name'=>"culture",'value'=>"$rs[ep_CompCulture]",'view'=>"$view",'icon'=>"'Please describe in 500 characters or less.  You may edit this later.', WIDTH, 300, SHADOW, true"));
								   $cpforms->maketextarea(array('text'=>"Company Benefits",'name'=>"benefits",'value'=>"$rs[ep_CompBenefits]",'view'=>"$view",'icon'=>"'Please describe in 500 characters or less.  You may edit this later.', WIDTH, 300, SHADOW, true"));
								   $cpforms->longline(array('title'=>"Billing Information (Complete only if different from the information above)"));
								   
								   $cpforms->gethightext(array('text'=>"Contact Name for Billing",'name'=>"bname",'value'=>"$rs[ep_bname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Contact Email for Billing",'name'=>"bemail",'value'=>"$rs[ep_bemail]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Contact Phone for Billing",'name'=>"bphone",'value'=>"$rs[ep_bphone]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Billing Address",'name'=>"baddress",'value'=>"$rs[ep_baddress]",'view'=>"$view"));

								   $cpforms->longline(array('title'=>"Business Entity Information",'icon'=>"'The business and professional reference information below is required if you wish to become our member.  This is a measure we take to ensure that employers using our site are legitimate business entities.  In order to ensure an enjoyable experience for all members, we reserve the rights and discretion to remove any user (or block any user from our site) who violates our Terms of Use agreement.  Thank you for your understanding and cooperation!  ', WIDTH, 300, SHADOW, true"));
								   $cpforms->gethightext(array('text'=>"Business License Number",'name'=>"licensenumber",'value'=>"$rs[ep_license]",'view'=>"$view",'icon'=>"'Please Business License Number. ', WIDTH, 300, SHADOW, true"));
								   $cpforms->gethightext(array('text'=>"Business License Issuing City, State, Country",'name'=>"licenseissue",'value'=>"$rs[ep_license_Issue]",'view'=>"$view",'icon'=>"'Please enter the city, state and country in which your business license was issued.', WIDTH, 300, SHADOW, true"));
								   $cpforms->gethightext(array('text'=>"Federal Tax ID#",'name'=>"licensephone",'value'=>"$rs[ep_license_office]",'view'=>"$view",'icon'=>"'Please enter your Federal Tax ID#.', WIDTH, 300, SHADOW, true"));
								   $cpforms->longline(array('title'=>"Professional Reference"));
								   $cpforms->smallline(array('title'=>"1st Reference"));
								   $cpforms->gethightext(array('text'=>"Company Name",'name'=>"ref_1_cpname",'value'=>"$rs[ep_pr1_cpname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Contact Name",'name'=>"ref_1_ctname",'value'=>"$rs[ep_pr1_ctname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Phone",'name'=>"ref_1_phone",'value'=>"$rs[ep_pr1_phone]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Email",'name'=>"ref_1_email",'value'=>"$rs[ep_pr1_email]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Relationship",'name'=>"ref_1_relationship",'value'=>"$rs[ep_pr1_relationship]",'view'=>"$view"));
								   $cpforms->smallline(array('title'=>"2nd Reference"));
								   $cpforms->gethightext(array('text'=>"Company Name",'name'=>"ref_2_cpname",'value'=>"$rs[ep_pr2_cpname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Contact Name",'name'=>"ref_2_ctname",'value'=>"$rs[ep_pr2_ctname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Phone",'name'=>"ref_2_phone",'value'=>"$rs[ep_pr2_phone]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Email",'name'=>"ref_2_email",'value'=>"$rs[ep_pr2_email]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Relationship",'name'=>"ref_2_relationship",'value'=>"$rs[ep_pr2_relationship]",'view'=>"$view"));
								   $cpforms->smallline(array('title'=>"3rd Reference"));
								   $cpforms->gethightext(array('text'=>"Company Name",'name'=>"ref_3_cpname",'value'=>"$rs[ep_pr3_cpname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Contact Name",'name'=>"ref_3_ctname",'value'=>"$rs[ep_pr3_ctname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Phone",'name'=>"ref_3_phone",'value'=>"$rs[ep_pr3_phone]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Email",'name'=>"ref_3_email",'value'=>"$rs[ep_pr3_email]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Relationship",'name'=>"ref_3_relationship",'value'=>"$rs[ep_pr3_relationship]",'view'=>"$view"));

								   $cpforms->formfooter(array('confirm'=>3));
								   $reg_data = ob_get_contents();
							   ob_end_clean();
							   $title   = "Employer Update";
							   //$content = "Welcome to enetRecruiter! Thank you for registering with us.  Please be sure to complete all the required fields below before clicking on the ‘Buy Now’ or ‘Try Now’ button.  The account items below with a check mark (√) in front will be included in our new members list for public viewing.  All other items are private and confidential therefore are not viewable to the public. ";
							   $smarty->assign('title',$title);
							   $smarty->assign('content',$content);
							   if($err!=''){
							   $smarty->assign("err",$err);
							   }
							   $smarty->assign("reg",$reg_data);
							   $smarty->display('allleft.tpl');
							   $smarty->display('reg.tpl');
						   break;




						    case advisor:
							   ob_clean(); 
							   ob_start();

								  $cpforms->formheader(array('title'=>'My Account','name'=>'article','enctype'=>'multipart/form-data'));

								   $cpforms->makehidden(array('name'=>'action','value'=>'adv_update'));
								   $advisorid = intval($_GET[id]);
								   $cpforms->makehidden(array('name'=>'id', 'value'=>$advisorid));
								   $rs  = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."advisory WHERE ad_id =".$advisorid);
								   $read =1;
								   $cpforms->gethightext(array('text'=>"√Username",'name'=>"user_name",'only'=>1,'value'=>"$rs[ad_uname]",'read'=>"$read",'view'=>"$view",'icon'=>"'Read Only.', WIDTH, 200, SHADOW, true"));
								   $cpforms->gethightext(array('text'=>"Password",'name'=>"password",'type'=>"password",'view'=>"$view",'icon'=>"'Leave blank unless you wish to change your password.', WIDTH, 200, SHADOW, true"));

								   $cpforms->longline(array('title'=>"Contact Information"));
								   $cpforms->gethightext(array('text'=>"√Your First Name",'name'=>"firstname",'only'=>1,'value'=>"$rs[ad_fname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Your Last Name", 'name'=>"lastname",'only'=>1,'value'=>"$rs[ad_lname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Your Email Address", 'name'=>"email",'only'=>1,'value'=>"$rs[ad_email]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Your Phone", 'name'=>"phone",'only'=>1,'value'=>"$rs[ad_phone]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Your Fax", 'name'=>"fax",'value'=>"$rs[ad_fax]",'view'=>"$view"));		  
								   $cpforms->gethightext(array('text'=>"√Your Job Title", 'name'=>"jobtitle",'only'=>1,'value'=>"$rs[ad_jobtitle]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Your Skype ID", 'name'=>"skype",'value'=>"$rs[ad_skype]",'view'=>"$view",'icon'=>"' If you do not have a Skype ID, you may complete this field later.  To get FREE Skype, <a href=\'http://www.skype.com/download\'>Go Here</a>', WIDTH, 200, TITLE,'', SHADOW, true, FADEIN, 100, FADEOUT, 100, STICKY, 1, CLOSEBTN, true, CLICKCLOSE, true"));
								   $cpforms->gethightext(array('text'=>"√Your Spoken Language(s)",'name'=>"spokenlanguage",'only'=>1,'value'=>"$rs[ad_spoken]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Years of Work Experience",'name'=>"yrexp",'only'=>1,'value'=>"$rs[ad_yrexp]",'view'=>"$view"));
								   $cpforms->maketextarea(array('text'=>"√Please write a brief description about you or your company here ",'only'=>1,'name'=>"description",'value'=>"$rs[ad_copdes]",'view'=>"$view" ,'icon'=>"'Please describe in 500 characters or less.  You may edit this later.', WIDTH, 200, SHADOW, true"));
								   $cpforms->gethighradio(array('text'=>"Would you like to subscribe to our newsletter",'name'=>"newsmailist",'only'=>1,'selected'=>"$rs[ad_newsmailist]",'view'=>"$view"));		   
								   $cpforms->gethightext(array('text'=>"How did you hear about us?",'name'=>"howus",'only'=>1,'value'=>"$rs[ad_howus]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"Service Code",'name'=>"servicecode",'value'=>"$rs[ad_servicecode]",'view'=>"$view",'icon'=>"'If you have a service code please enter it here.', WIDTH, 200, SHADOW, true"));
								   $cpforms->makefile(array('text'=>"√Picture (Only accept image size less than 50KB.)",'name'=>"uploadfile", 'value'=>"$rs[ad_upload]",'view'=>"$view",'url'  => "uploadfiles/advisory/"));
								 
								   $cpforms->longline(array('title'=>"Company Information"));
								   $cpforms->gethightext(array('text'=>"√Company Name", 'name'=>"companyname",'only'=>1,'value'=>"$rs[ad_copname]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Company Website URL",'name'=>"companyurl",'value'=>"$rs[ad_website]",'view'=>"$view"));
								   $cpforms->makeselect(array('text'=>"√Industry", 'name'=>"industry",'only'=>1,'option'=>$jobcategory,'selected'=>"$rs[ad_industry]",'view'=>"$view",'viewfunction'=>'jobcategory'));
								   $cpforms->gethightext(array('text'=>"Company Size", 'name'=>"companysize",'only'=>1,'value'=>"$rs[ad_copsize]",'view'=>"$view",'icon'=>"' Enter an estimated number of full time employees.', WIDTH, 300, SHADOW, true"));
								   $cpforms->gethightext(array('text'=>"Business Address",'name'=>"address",'only'=>1,'value'=>"$rs[ad_address]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√Location - City",'name'=>"locity",'only'=>1,'value'=>"$rs[ad_city]",'view'=>"$view"));
								   $cpforms->makeselect(array('text'=>"√Location - State", 'name'=>"lostate",'only'=>1,'option'=>$state,'selected'=>"$rs[ad_state]",'view'=>"$view",'viewfunction'=>'state'));
								   $cpforms->gethightext(array('text'=>"√Location - Zip Code",'name'=>"lozip",'only'=>1,'value'=>"$rs[ad_lozip]",'view'=>"$view"));
								   $cpforms->makeselect(array('text'=>"√Location - Country",'name'=>"locountry",'only'=>1,'option'=>$country,'selected'=>"$rs[ad_country]",'view'=>"$view",'viewfunction'=>'country'));
								   $cpforms->makeselect(array('text'=>"√Your General Service Area",'name'=>"generalarea",'only'=>1,'option'=>$service,'selected'=>"$rs[ad_generalarea]",'view'=>"$view",'viewfunction'=>'service'));
								   $cpforms->makeselect(array('text'=>"√Your Primary Service Area (State)",'name'=>"pristate",'only'=>1,'option'=>$state,'selected'=>"$rs[ad_primarystate]",'view'=>"$view",'viewfunction'=>'state'));
								   $cpforms->makeselect(array('text'=>"√Your Primary Service Area (Country)",'name'=>"pricountry",'only'=>1,'option'=>$country,'selected'=>"$rs[ad_primarycountry]",'view'=>"$view",'viewfunction'=>'country'));
								   $cpforms->gethightext(array('text'=>"√Your Specialty",'name'=>"specialty",'only'=>1,'value'=>"$rs[ad_specialty]",'view'=>"$view"));
								  
								   $cpforms->gethightext(array('text'=>"√If service area is outside of the U.S., please indicate location",'name'=>"indicate",'value'=>"$rs[ad_indicate]",'view'=>"$view"));
								   $cpforms->longline(array('title'=>"My Links",'icon'=>"'Below are links you can add to appear on your public profile page. You may edit this later. ', WIDTH, 300, SHADOW, true"));		   
								   $cpforms->gethightext(array('text'=>"√My Top 3 Clients(1)",'name'=>"myclient1",'value'=>"$rs[ad_top3_1]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√My Top 3 Clients(2)",'name'=>"myclient2",'value'=>"$rs[ad_top3_2]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√My Top 3 Clients(3)",'name'=>"myclient3",'value'=>"$rs[ad_top3_3]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√My Online Links(1)",'name'=>"myonline1",'value'=>"$rs[ad_links_1]",'view'=>"$view",'prevalue'=>"http://"));
								   $cpforms->gethightext(array('text'=>"√My Online Links(2)",'name'=>"myonline2",'value'=>"$rs[ad_links_2]",'view'=>"$view",'prevalue'=>"http://"));
								   $cpforms->gethightext(array('text'=>"√My Online Links(3)",'name'=>"myonline3",'value'=>"$rs[ad_links_3]",'view'=>"$view",'prevalue'=>"http://"));
								   $cpforms->gethightext(array('text'=>"√My Favoriate Sites (1)",'name'=>"myfavoritet1",'value'=>"$rs[ad_sites_1]",'view'=>"$view",'prevalue'=>"http://"));
								   $cpforms->gethightext(array('text'=>"√My Favoriate Sites (2)",'name'=>"myfavoritet2",'value'=>"$rs[ad_sites_2]",'view'=>"$view",'prevalue'=>"http://"));
								   $cpforms->gethightext(array('text'=>"√My Favoriate Sites (3)",'name'=>"myfavoritet3",'value'=>"$rs[ad_sites_3]",'view'=>"$view",'prevalue'=>"http://")); 
								   $cpforms->gethightext(array('text'=>"√My Professional Affiliation (1)",'name'=>"myprofession1",'value'=>"$rs[ad_profess_1]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√My Professional Affiliation (2)",'name'=>"myprofession2",'value'=>"$rs[ad_profess_2]",'view'=>"$view"));
								   $cpforms->gethightext(array('text'=>"√My Professional Affiliation (3)",'name'=>"myprofession3",'value'=>"$rs[ad_profess_3]",'view'=>"$view"));

								   $cpforms->formfooter(array('confirm'=>3));
								   $reg_data = ob_get_contents();
							   ob_end_clean();
							   $title   = "Advisor Update";
							   //$content = "Welcome to enetRecruiter! Thank you for registering with us.  Please be sure to complete all the required fields below before clicking on the ‘Buy Now’ or ‘Try Now’ button.  The account items below with a check mark (√) in front will be included in our new members list for public viewing.  All other items are private and confidential therefore are not viewable to the public. ";
							   $smarty->assign('title',$title);
							   $smarty->assign('content',$content);
							   if($err!=''){
							   $smarty->assign("err",$err);
							   }
							   $returnicon = "<a href=settings.php><img src=images/back_1.gif border=0 align=absmiddle/></a>&nbsp;&nbsp;<input class=\"button-secondary\" type=\"button\" value=\"Preivew\" onclick=\"window.open('advisordetail.php?id={$_SESSION[uid]}','_blank');\">";
							   $smarty->assign('returnicon',$returnicon);
							   $smarty->assign("reg",$reg_data);
							   $smarty->display('allleft.tpl');
							   $smarty->display('reg.tpl');
						   break;

						   default:
							   $smarty->assign("err","Please login in first");
							   $smarty->display('error.tpl');
						}
}else{
       ob_clean();
	   ob_start();
	   echo '<tr><td bgcolor="#ffffff" colspan="2">
		   Welcome to this important step towards partnering with enetRecruiter.  This is a step recruiters must go through if you wish to submit candidates to employers on our site. This is a quality measure we take to ensure that we deliver a high level of professionalism and service to our employers.  Once your information is submitted to us we will review it thoroughly.  The approval process usually takes 2-3 business days.  Once your account is approved your membership status will be upgrade to the Full Access level where you can submit candidates to employers.  While your account is under review, you will be given access to our site at the Standard Access level.  The Standard Access level allows you to participate in all of the services available to our Full Access members, except submitting candidates to employers.  If for whatever reason your account is not approved, your access level will remain unchanged at the Standard Access level.  You will receive an email from us notifying you of your status change.  Our membership fee is the same for Standard Access and Full Access.  Finally, in order to ensure an enjoyable experience for all members, we reserve the rights and discretion to remove any user (or block any user from our site) who violates our Terms of Use agreement.  Thank you for your understanding and cooperation! 
		  </td></tr>';
	   	    echo '<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" class="tableoutline" style="TABLE-LAYOUT: fixed" >
			<form action="/enetdiv/myaccount.php" enctype="multipart/form-data" method="post" name="article" >
			<tr><td><table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">';
			
			$cpforms->makehidden(array('name'=>'action',
									   'value'=>'rec_update2'));
		    $recuiterid = intval($_GET[id]);
			$cpforms->makehidden(array('name'=>'id',
									   'value'=>$recuiterid));
            $read =1;
	        $rs  = $DB->fetch_one_array("SELECT * FROM ".$db_prefix."recuiter WHERE rc_id =".$recuiterid);
		//	echo "<pre>";
	      // print_r($rs);
		 
		   $cpforms->longline(array('title'=>"Business Entity"));
		   $cpforms->gethightext(array('text'=>"Business License Number", 'name'=>"licensenumber",'only'=>1,'value'=>"$rs[rc_license]",'view'=>"$view",'icon'=>"'  Please note you must provide a copy of your valid business license (or tax certificate) to us when requested by an enetRecruiter representative.  A failure to do so will delay your approval process and/or subject your account to suspension until we receive a valid copy. ', WIDTH, 200, TITLE,'', SHADOW, true, FADEIN, 100, FADEOUT, 100"));
		   $cpforms->gethightext(array('text'=>"Business License Issuing City, State, Country", 'name'=>"licenseissue",'only'=>1,'value'=>"$rs[rc_license_Issue]",'view'=>"$view",'icon'=>"' Please indicate the city, state and country in which your business license was issued.', WIDTH, 200, TITLE,'', SHADOW, true, FADEIN, 100, FADEOUT, 100"));
		   $cpforms->gethightext(array('text'=>"Licensing Office Phone Number", 'name'=>"licensephone",'only'=>1,'value'=>"$rs[rc_license_office]",'view'=>"$view",'icon'=>"' Please enter your Federal Tax ID#.', WIDTH, 200, TITLE,'', SHADOW, true, FADEIN, 100, FADEOUT, 100"));
		   $cpforms->longline(array('title'=>"Professional Reference "));		   
		    $cpforms->smallline(array('title'=>"1st Reference"));
		   $cpforms->gethightext(array('text'=>"Company Name",'name'=>"companyname1",'value'=>"$rs[rc_pr1_cpname]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Contact Name",'name'=>"contactname1",'value'=>"$rs[rc_pr1_ctname]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Phone Number",'name'=>"phonenumber1",'value'=>"$rs[rc_pr1_phone]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Email",'name'=>"email1",'value'=>"$rs[rc_pr1_email]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Relationship",'name'=>"relationship1",'value'=>"$rs[rc_pr1_relationship]",'view'=>"$view",'only'=>1));
		    $cpforms->smallline(array('title'=>"2nd Reference"));
		   $cpforms->gethightext(array('text'=>"Company Name",'name'=>"companyname2",'value'=>"$rs[rc_pr2_cpname]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Contact Name",'name'=>"contactname2",'value'=>"$rs[rc_pr2_ctname]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Phone Number",'name'=>"phonenumber2",'value'=>"$rs[rc_pr2_phone]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Email",'name'=>"email2",'value'=>"$rs[rc_pr2_email]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Relationship",'name'=>"relationship2",'value'=>"$rs[rc_pr2_relationship]",'view'=>"$view",'only'=>1));
		    $cpforms->smallline(array('title'=>"3rd Reference"));
		   $cpforms->gethightext(array('text'=>"Company Name",'name'=>"companyname3",'value'=>"$rs[rc_pr3_cpname]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Contact Name",'name'=>"contactname3",'value'=>"$rs[rc_pr3_ctname]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Phone Number",'name'=>"phonenumber3",'value'=>"$rs[rc_pr3_phone]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Email",'name'=>"email3",'value'=>"$rs[rc_pr3_email]",'view'=>"$view",'only'=>1));
		   $cpforms->gethightext(array('text'=>"Relationship",'name'=>"relationship3",'value'=>"$rs[rc_pr3_relationship]",'view'=>"$view",'only'=>1));
	       $cpforms->formfooter(array('confirm'=>3));
		   $reg_data = ob_get_contents();
           ob_end_clean();

	   $title   = "Recruiter Update";
	     $returnicon = "<a href=settings.php><img src=images/back_1.gif border=0 align=absmiddle/></a>";
	  $smarty->assign('returnicon',$returnicon);
	  // $content = "Welcome to enetRecruiter! Thank you for registering with us.  Please be sure to complete all the required fields below before clicking on the ‘Buy Now’ or ‘Try Now’ button.  The account items below with a check mark (√) in front will be included in our new members list for public viewing.  All other items are private and confidential therefore are not viewable to the public. ";
	   $smarty->assign('title',$title);
	   $smarty->assign('content',$content);

	   if($err!=''){
	   $smarty->assign("err",$err);
	   }
       $smarty->assign("reg",$reg_data);
	   $smarty->display('header.tpl');
       $smarty->display('allleft.tpl');
	   $smarty->display('reg.tpl');
}

$smarty->display('allright.tpl');
$smarty->display('footer.tpl');
?>
